<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#main_big").slideToggle("slow");
});
</script>
</head>

<body style="background:#FFF">
<iframe name="get" style="display:none;"></iframe>
<div id="main_big" style="display:none">导航管理列表</div>
<div id="main_contents">
  <div id="main_description">描述：导航管理列表</div>
  <script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
				$("#form1").fadeIn("slow"); 			   
        $(".main_table tr").mouseover(function(){
                //如果鼠标移到class为stripe的表格的tr上时，执行函数
                $(this).addClass("over");}).mouseout(function(){
                $(this).removeClass("over");}) 
		$('.sort2 td').css({'background':'#c1c1c1'});
		$('.sort2 td').css({'text-indent':'0px'});
			$('.show_m').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Product&a=ajax_sort_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#c' + pid).html(json.show);
					$('#s' + pid).html(json.value);
					}
				});
			});
});
</script>
  <form id="form1" name="form1" method="post" target="get" action="?m=Product&a=sort_delete" style="display:none;">
    <div class="table_c">
      <h1>顶部导航</h1>
      <table border="0" cellspacing="1" class="main_table">
        <tr>
          <th width="30" align="center">删</th>
          <th width="50">分类ID</th>
          <th>产品分类名称</th>
          <th>英文名称</th>
          <th>排序</th>
          <th>是否显示</th>
          <th>编辑</th>
        </tr>
        <if condition="!empty($sort1)">
          <volist name="sort1" id="vo">
            <tr>
              <td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.sort_id}>"></td>
              <td><{$vo.sort_id}></td>
              <td><{$vo.title}></td>
              <td><{$vo.e_title}></td>
              <td><{$vo.sorting}></td>
             <td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.sort_id}></span><span id="s<{$vo.sort_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.sort_id}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
              <td><a href="?m=Product&a=sort_edit&sortid=<{$vo.sort_id}>">[详细]</a></td>
            </tr>
            	<volist name="sort2" id="co">
                    <if condition="$vo['sort_id'] eq $co['sid']">
                        <tr class="sort2">
                          <td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$co.sort_id}>"></td>
                          <td><{$co.sort_id}></td>
                          <td>|---<{$co.title}></td>
                          <td><{$co.e_title}></td>
                          <td><{$co.sorting}></td>
                          <td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$co.sort_id}></span><span id="s<{$co.sort_id}>" class="show_me" style="display:none;"><{$co.show_m}></span>
                <span id="c<{$co.sort_id}>" class="show"><if condition="$co.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                          <td><a href="?m=Product&a=sort_edit&sortid=<{$co.sort_id}>">[详细]</a></td>
                        </tr>
                    </if>
                </volist>
          </volist>
          <else />
          <tr>
            <td colspan="7">当前没有任何记录</td>
          </tr>
        </if>
      </table>
      <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />
    </div>
  </form>
</div>
</body>
</html>